<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>Title</title>
  <style>
    table, th, td {
      border: 1px solid #ccc;
    }
    th
    {
      white-space: nowrap;
    }
  </style>
</head>
<body>
<table>
  <tr>
  <th>编号</th>
  <th>编码</th>
  <th>菜单名称</th>
  <th>菜单地址</th>
  <th>菜单图标</th>
  <th>菜单状态</th>
  <th>父节点</th>
  <th>菜单类型</th>
  <th>创建时间</th>
  <th>修改时间</th>
  <th>操作</th>
  </tr>
  <c:forEach items="${menus}" var="menu" varStatus="status">
    <tr>
      <td>${status.index + 1}</td>
      <td>${menu.menuCode}</td>
      <td>${menu.menuName}</td>
      <td>${menu.menuUrl}</td>
      <td>${menu.menuIcon}</td>
      <td>${menu.menuStatus==1?"启用":"停用"}</td>
      <td>${menu.parentCode}</td>
      <td>${menu.menuType==1?"菜单":"按钮"}</td>
      <td>${menu.createTime}</td>
      <td>${menu.updateTime}</td>
      <td><a href="/menu/setStatus?status=${menu.menuStatus==1?0:1}&menuCode=${menu.menuCode}">${menu.menuStatus==1?"停用":"启用"}</a></td>
    </tr>
  </c:forEach>
</table>
</body>
</html>
